package com.yunhuakeji.wddx.utils;

import java.util.HashMap;
import java.util.Map;

public class errorHelper {
	public static String GetErrorJson(String errorcode)
	{
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("errorcode", errorcode);
		return JsonTool.toJson(map);
	}
	
	public static String GetSuccessJson(String success)
	{
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("errorcode", success);
		return JsonTool.toJson(map);
	}
}
